﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Star.Tools.Excel
{
    /// <summary>
    /// 导出实体
    /// </summary>
    public class ExcelExportEntity
    {
        /// <summary>
        /// Sheet页名称
        /// </summary>
        public string SheetName { get; set; }

        /// <summary>
        /// 数据源
        /// </summary>
        public IEnumerable<object> ListSource { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public Type Type { get; set; }


        public List<MergedRegionInfo> ListMergedRegion { get; set; }
    }
    public class ExcelExportEntity<T>
    {
        /// <summary>
        /// Sheet页名称
        /// </summary>
        public string SheetName { get; set; }

        /// <summary>
        /// 数据源
        /// </summary>
        public IEnumerable<T> ListSource { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        public Type Type { get; set; }


        public List<MergedRegionInfo> ListMergedRegion { get; set; }
    }
}